package Concurrency2.Inteview01_ThreadPool.version03;

import Concurrency2.Inteview01_ThreadPool.version01.ThreadPool;

/**
 * 作用: 定义拒绝操作抽象接口
 */
public interface RejectedExecutionHandler {
    /**
     * 功能: 拒绝操作
     *
     * @param task     准备拒绝的Task
     * @param executor 当前线程池
     */
    void rejectedExecution(Runnable task, ThreadPool executor);
}
